Prefix and postfix notation have three common features 前缀和后缀表示法有三项公共特征
To convert an expression in an infix expression to its equivalent in postfix notation, we must know the precedence and associativity of operators. 要把表达式从中缀表达式的形式转换成用后缀表示法表示的等价表达式,必须了解操作符的优先级和结合性。
Postfix notation is also known as reverse Polish notation ( RPN) and is commonly used because it enables easy evaluation of expressions. 后缀表示法也称逆波兰表示法(reversePolishnotation,RPN),因其使表达式求值变得轻松,所以被普遍使用。
In postfix notation, the operator comes after its operands. 在后缀表示法中,操作符位于操作数后面。
It does not convert infix expressions to postfix notation; rather, it evaluates the infix expression directly. 不是把中缀表达式转换为后缀表示法;恰恰相反,它对中缀表达式直接求值。